#pragma once

class COutputWindow
{
public:
	// Message
	static const DWORD			WM_WRITE_LOG		= (WM_APP + 100);
	static const unsigned int	MAX_BUFFER_SIZE		= 1024;

protected:
	COutputWindow(void);
	~COutputWindow(void);

protected:
	void static ResizeWindow(HWND hDlg, SIZE &WndSize);
	void static AppendLog(	HWND hDlg,
							LPCSTR lpszLog,
							const unsigned int nLength);

public:
	INT_PTR static CALLBACK DialogProc(	HWND hwndDlg,
										UINT uMsg,
										WPARAM wParam,
										LPARAM lParam);
	HWND static CreateOutputWindow(	HINSTANCE hInstance,
									HWND hWndParent);
};